<?php

namespace Biz\model;

/**
 *
 * @author lee
 *
 */
class BankList extends \Doraemon\pockets\datebase\BaseDbModel
{

    const _CONFIG_FILE_ = 'db_shop';

    const _CONFIG_SELECT_ = 'db_shop_info';

    const _DATABASE_ = 'shop_info';

    const _TABLE_NAME = 'bank_list';


    public static function getLocalBankList()
    {

        $bankList = self::select(['name', 'local_tag']);
        $formatData = [];
        foreach ($bankList as $bank) {
            $formatData[$bank['local_tag']] = $bank;
        }
        return $formatData;
    }

}

